#!/usr/bin/python

File = raw_input("Enter the name of the file: ")
theFile = open(File,"r")
def main(txt_file):
	theNums = []
	for val in txt_file.read().split():
		theNums.append(int(val)) #push the file into a list and declaring them as numbers
	return theNums

def square(numbers):
	for i in numbers:
		square = i**2
		print "The square of %s is: %s" % (i, square)

def summing(lists):
	for number in lists:
		square = number**2
	print sum(square)
	#print "The sum of the list is: %s" % addition

mylist = main(theFile)
square(mylist)
summing(mylist)
